<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
window.onload = function (){
    console.log("页面加载完毕");
    var div = document.querySelector("div");
    console.log(div);
}

</script>
</head>
<body>
<div>aaa</div>
<img src="./美女.jpg" alt="" onload="show();">

<script type="text/javascript">
var img = document.querySelector("img");
for (var i = 0; i < 100000; i++) var a = i + "  ";
img.onload = function (){
    console.log("图片加载完成");
}
console.log("...a....");
</script>

</body>
</html>